home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / ViewKit_dev.idb / usr / include / Vk / VkProgressDialog.h.z / VkProgressDialog.h
Encoding:
C/C++ Source or Header  |  1996-09-20  |  2.3 KB  |  65 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. ///////   Copyright 1995, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. ////////////////////////////////////////////////////////////////////////////////
  17.  
  18. //////////////
  19. //
  20. // An interruptible Busy dialog which displays a progress meter.
  21. //
  22. //////////////
  23.  
  24.  
  25. #ifndef VKPROGRESSDIALOG_H
  26. #define VKPROGRESSDIALOG_H
  27.  
  28. #include <Vk/VkInterruptDialog.h>
  29.  
  30. class VkProgressDialog : public VkInterruptDialog {
  31.  
  32.   public:
  33.     
  34.     VkProgressDialog(const char* name, Boolean showCancel = TRUE);
  35.     ~VkProgressDialog();
  36.     
  37.     virtual void setPercentDone(int);
  38.  
  39.   protected:
  40.  
  41.     Widget prepost ( const char      *msg, 
  42.              XtCallbackProc   okCB,
  43.              XtCallbackProc   cancelCB,
  44.              XtCallbackProc   applyCB,
  45.              XtPointer       clientData,
  46.              const char      *helpString,
  47.              VkSimpleWindow  *parentWindow);
  48.     
  49.     virtual Widget createDialog(Widget);
  50.     
  51.     Widget        _thermometer;
  52.     int            _percentDone;
  53.     
  54.   private:
  55.  
  56. };
  57.  
  58. extern VkProgressDialog *getTheProgressDialog();
  59. extern VkProgressDialog *getTheDefaultProgressDialog();
  60.     
  61. #define theProgressDialog getTheProgressDialog()
  62. #define theDefaultProgressDialog getTheDefaultProgressDialog()
  63.  
  64. #endif
  65.